package com.gs.mapper;

import com.gs.entity.User;
import org.apache.ibatis.annotations.Insert;
import org.springframework.cache.annotation.CachePut;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository(value="userMapper")
public interface UserMapper {
    int deleteByPrimaryKey(Integer userId);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer userId);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    List<User> selectAllUser();
    List<User>  getUserInfo();

    int insertOrUpdateUsers(List<User> users);
}